<div class="panel panel-default" ng-controller="RtTicketsCtrl">
	<div class="panel-heading">城际约租 / 约租票池</div>
	<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
	<div class="row wrapper m-n">
		<form class="form-horizontal ng-pristine ng-valid">
			<div class="form-group col-md-4" ng-controller="DatepickerDemoCtrl">
				<div class="col-md-11">
					<div class="input-group">
						<input type="text" class="form-control" datepicker-popup="{{format}}" is-open="opened" ng-model="queryMap.date" datepicker-options="dateOptions"
							close-text="Close" placeholder="选择日期" readOnly />
						<span class="input-group-btn">
							<button type="button" class="btn btn-default" ng-click="open($event)">
								<i class="glyphicon glyphicon-calendar"></i>
							</button>
						</span>
					</div>
				</div>
			</div>
			<div class="form-group col-md-3">
				<div class="col-md-11">
					<button type="button" class="btn btn-info" ng-click="query()">查询</button>
				</div>
			</div>
		</form>
	</div>
	<div class="table-responsive">
		<table class="table table-striped b-t b-light">
			<thead>
				<tr>
					<th style="width:10px;"></th>
					<th style="width:70px;">编号</th>
					<th style="width:100px;">线路</th>
					<th style="width:100px;">去程（余票/总票数）</th>
					<th style="width:100px;">回程（余票/总票数）</th>
					<th style="width:80px;">
					</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="pool in dataList">
					<td></td>
					<td>{{pool.group.route1.code}}</td>
					<td>{{pool.group.route1.city1.name}} ↔ {{pool.group.route1.city2.name}}</td>
					<td>{{pool.pool1.left}} / {{pool.pool1.total}}</td>
					<td>{{pool.pool2.left}} / {{pool.pool2.total}}</td>
					<td>
						<a has-authority="RENT_TICKETS_RESOURCE" href ui-sref="app.rent.resource({ group: pool.group.id})" target="_blank" class="text-base label bg-info"
							tooltip="当前线路的所有运营资源">查看车辆资源</a>
					</td>
				</tr>
				<tr ng-show="dataList.length == 0">
					<td colspan="6" style="text-align: center;">暂无票池信息</td>
				</tr>
			</tbody>
		</table>
	</div>
	<page-footer/>
</div>